<template>
  <div>
    测试页
    <hr>
    <test></test>
    <hr>
    <button @click="dj">点击</button>
    <div>{{test}}</div>
  </div>
</template>

<script>
  import { mapState } from 'vuex'
  import { mapActions } from 'vuex'
  import * as apis from '../apis'
  export default {
  	mounted () {
  	},
  	computed: {
			...mapState({
		    test: state => state.Test.test
		  })
		},
  	methods: {
			...mapActions([
		    'addTest'
	    ]),
	    dj () {
	    	this.addTest('ABCD')
        // apis.getUser()
	    }
  	}
  }
</script>